public class c2 {
    //1. 定义一个用户类，存放用户的账号、用户名和密码属性；定义有参构造函数，对类的属性进行初始化

        private int zhanghao;
        private String name;
        private  double mima;
        public c2(int zhanghao,String name,double mima){
            this.setzhanghao(zhanghao);
            this.setname(name);
            this.setMima(mima);
        }

        public int getZhanghao() {
            return zhanghao;
        }

        public void setzhanghao(int zhanghao) {
            this.zhanghao= zhanghao;
        }

        public String getName() {
            return name;
        }

        public void setname(String  name) {
            this.name = name;
        }

    public double getMima() {
        return mima;
    }

    public void setMima(double mima) {
        this.mima = mima;
    }
}

